package com.enthusiasm.frame;

import android.content.Context;
import android.view.MotionEvent;
import android.widget.Gallery;

import com.enthusiasm.constants.Constants;

public class ModeGallery extends Gallery{
	public ModeGallery(Context context) {
		super(context);
	}

	@Override
	public void setMinimumHeight(int minHeight) {
		super.setMinimumHeight(minHeight);
	}

	@Override
	public void setPadding(int left, int top, int right, int bottom) {
		super.setPadding(left, top, right, bottom);
	}

	@Override
	public void setGravity(int gravity) {
		super.setGravity(gravity);
	}

	@Override
	public void setSpacing(int spacing) {
		spacing = Constants.WIDTH/5;
		super.setSpacing(spacing);
	}

	@Override
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
			float velocityY) {
		return false;
	}

	@Override
	public void setUnselectedAlpha(float unselectedAlpha) {
		unselectedAlpha = 1f;
		super.setUnselectedAlpha(unselectedAlpha);
	}

}
